import request from '@/utils/request'

// 模糊查询货主
export const vagueOwner = params => request.get('/api/owner/vague', { params: { params }})

// 查询货主管理明细
export const getOwnerDetails = id => request.get(`/api/owner/detail/${id}`)

// 分页查询货主
export const getOwnerList = params => request.get('/api/owner/page', { params })

// 修改货主管理
export const setOwner = data => request.put('/api/owner', data)

// 删除货主管理
export const delOwner = params => request.delete('/api/owner', { params })

// 新增货主
export const addOwner = data => request.post('/api/owner', data)

// 查询货主管理
export const queryOwner = id => request.get(`/api/owner/${id}`)

// 查询全部货主管理
export const getAllOwnerList = params => request.get('/api/owner/list', { params })
